<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html>
<%@ include file="../customer/main_header.jsp" %>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="/Jangdolbaeng2/css/seller/skin/Default/bootstrap.min.css" rel="stylesheet">
<link href="/Jangdolbaeng2/css/customer/common.css" rel="stylesheet">
<script type="text/javascript" src="/Jangdolbaeng2/js/jquery-1.11.1.js"></script>
<script type="text/javascript" src="/Jangdolbaeng2/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/Jangdolbaeng2/js/holder.js"></script>

<title>상점 목록</title>
<style type="text/css">
#blog_list{
width: 1100px;
height:300px;
margin:242 0 150 0;
margin:0 auto;
}
.blog_img{
width: 274px;
height: 137px;
vertical-align: middle;
text-align: center;
}
</style>
</head>
<body>
<div class="container" style="width: 1100px; height: 800px;  overflow-y: auto; overflow-x: hidden; margin-top: 10px;margin-bottom: 10px;">													
<div id = "blog_list">		
<div class="row" style="width: 1100;">
<s:iterator value="blogList">
		<div class="col-md-4"  style="width:264px; height: 241px;">
				<div class="thumbnail">		
				<s:if test="BLOG_PHOTO != null">						
						<a href="#"><img class = "img-rounded" src="data:image/jpeg;base64,${BLOG_PHOTO}" alt="${NAME}" title="${NAME}" onclick="goBlog(${SHOP_SEQ})" style="margin-bottom: 5px;width: 263px;height: 137px;"></a>				
				</s:if>
				<!-- 디폴트용 문자 대문 -->
				<s:else>
					<a href="#"><img data-src="holder.js/263x137/social_with_large_font/text:${NAME}" class="blog_img" onclick="goBlog(${SHOP_SEQ})"></a>
				</s:else>				
					<div class="caption">
						<h3 style="text-align: center;"><small>${NAME}</small></h3>
					</div>
				</div>
			</div>			
		</s:iterator>	
	</div>
</div>
<script type="text/javascript">
function goBlog(shop_seq) {
	location.href="seller/blogMain.action?shop_seq="+shop_seq;
}

</script>
</div>
</body>
<div id="footer">
	<%@ include file="../customer/main_footer.jsp" %>
</div>
</html>